import express from 'express';
const router = express.Router();
import user from "../services/auth/auth.controller"
const auth = require('../services/auth/auth.middlewares');
// register
router.post('/register', user.register);
// login
router.post('/login', user.login);
// all users
router.get('/getUsers', auth, user.all);
export default router;
